﻿@{  
    Layout = "~/_SiteLayout.cshtml";
    Page.Title = "Feedback Tab (With Single Sign-On) Demonstration";
}
<h3>UserVoice.FeedbackTabWithSSO() Method</h3>
<p>
    This page demonstrates how to add a UserVoice feedback tab that leverages SSO functionality. Notice the Red "Feedback" tab at the left of the page. To achieve this, we added the following to our page:
</p>

<pre class="codePre">@@UserVoice.FeedbackTabWithSSO(
                    guid: "54321", 
                    expires: DateTime.Now.AddDays(5).ToString(),
                    displayName: "Brandon Satrom", 
                    avatarUrl:"http://www.gravatar.com/avatar/925d804db89a698c5e93b5f4c575d9a0.png",
                    email: "bsatrom@gmail.com", 
                    url: "http://www.userinexperience.com/users/54321")
</pre>
<p>
    The UserVoice.cshtml helper file will take the passed in information and generate an encrypted and encoded token that can be passed to UserVoice to provide single sign-on of your sites users to the UserVoice service.
</p>
<p>
    For additional documentation, see the documentation section of your UserVoice Admin site. (Url should be something like the following: <strong>http://<i>yoursite</i>.uservoice.com/admin/docs</strong>)
</p>
<div class="message info">
    <strong>Note</strong>: SSO Functionality is only available to UserVoice customers with Bronze, Silver or Gold plans. Please visit <a href="http://uservoice.com/plans">User Voice</a> for more information.
</div>
@UserVoice.FeedbackTabWithSSO(
    guid: "54321", 
    expires: DateTime.Now.AddDays(5).ToString(), 
    displayName: "Brandon Satrom",
    avatarUrl: "http://www.gravatar.com/avatar/925d804db89a698c5e93b5f4c575d9a0.png",
    email: "bsatrom@gmail.com",
    url: "http://www.userinexperience.com/users/54321")